'use strict';

const { Service } = require('egg');


class oneService extends Service {
  async getInfo() {
    try {
      const { app } = this;
      const res = await app.mysql.select('test');
      // console.log(app.mysql.select('test'));
      return res;
    } catch (error) {
      console.log(error);
      return error;
    }
  }
  // async delInfo() {

  // }
  // async updateInfo() {

  // }
  // async selInfo() {

  // }
}

module.exports = oneService;
